package com.sharemarking.wa.common.eum;

/**
 * 验证码类型
 * 类型 0 绑定手机号
 * @author kj
 */
public enum VailCodeTypeEum {

//	BIND_MOBILE("0", "BIND_MOBILE"),
	LOGIN("1", "LOGIN"),
	RESGISTER("2","REGISTER"),
	FORGET_PSW("3","FORGET_PSW"),
//	UPDATE_MOBILE("4","UPDATE_MOBILE"),
//	CASH("5","CASH"),
	PAY_PWD("6","PAY_PWD");


	private String key;
	private String value;
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}

	private VailCodeTypeEum(String key, String value) {
		this.key = key;
		this.value = value;
	}
	public static String getValue(String index) {
		for (VailCodeTypeEum item : VailCodeTypeEum.values()) {
			if (item.getKey().equals(index)) {
				return item.value;
			}
		}
		return null;
	}
}
